<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Potevio集成平台</title>
    <link rel="icon" type="image/x-icon" th:href="@{/images/favicon.ico}">
    <link rel="stylesheet" th:href="@{/assets/bootstrap/css/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/assets/font-awesome/css/font-awesome.min.css}">
    <link rel="stylesheet" th:href="@{/css/base.css}">
    <link rel="stylesheet" th:href="@{/css/login.css}">
</head>
<body>
    <div class="login">
        <!--标题区-->
        <div class="login-title">
            <h1>Potevio集成平台</h1>
            
            <div class="login-content">
                <!--用户登录区-->
                <div class="userLogin">
                </div>
                <!--用户登录区背景-->
                <div class="loginArea">
                    <span></span>
                </div>
                <!-- 登录 -->
                <div class="login-wrap">

                    <div class="avatar">
                        <span class="avatar-img">
                            <i></i>
                        </span>
                        用户登录
                    </div>
                    <form th:action="@{/platform/login}" method="post" class="col-xs-offset-1 col-xs-10 form-horizontal login-form">
                        <div class="form-group">
                            <label for="inputEmail3" class="col-sm-3 control-label">用户名</label>
                            <div class="col-sm-9">
                            <!-- <input type="text" id="username" name="username" class="form-control" placeholder="请输入用户名"> -->
                            <input type="text" id="username" name="username" class="form-control" value="admin">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-3 control-label">密&nbsp;&nbsp;&nbsp;码</label>
                            <div class="col-sm-9">
                            <!-- <input type="password" id="password" name="password" class="form-control" placeholder="请输入密码"> -->
                            <input type="password" id="password" name="password" class="form-control" value="admin">
                            </div>
                        </div>
                        <div class="button-set">
                            <button type="submit" class="btn btn-primary button-l" id="btn">登 录</button>
                            <button type="button" class="btn">取 消</button>
                        </div>
                    </form>
                </div>
            </div>
            <div class="login-msg-error">
                <p th:if="${session.SPRING_SECURITY_LAST_EXCEPTION} != null" th:text="用户名或密码错误！"></p>
            </div>
        </div>
    </div>

    <script th:src="@{/assets/jquery/jquery.min.js}"></script>
    <script th:src="@{/assets/bootstrap/js/bootstrap.min.js}"></script>
    <script>
        if(window != window.parent){
            window.parent.location.reload(true);
        };
        if (top != window) {
            top.location.href = window.location.href;
        }; 
        
    </script>
</body>
</html>